<?php


namespace app\model\video;


use think\Model;
use think\model\concern\SoftDelete;

class VideoNodeModel extends Model
{
    protected $name = 'video_node';
    protected $autoWriteTimestamp = true;

    use SoftDelete;
    protected $defaultSoftDelete = 0;

    public function chapter()
    {
        return $this->hasOne(VideoChapterModel::class, 'id', 'chapter_id')->bind(['chapter_title' => 'title']);
    }
}